package presenter;

import java.awt.Dimension;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Toolkit;

import model.GuiData;
import view.IGuiView;

/**
 * @author  Natal Venetz
 */
public class GuiPresenter implements IGuiPresenter{

	/** 
	 */
	private IGuiView currentView;
	
	Dimension dim;
	
	public GuiPresenter(IGuiView view) {
		
		currentView = view;
	}
	
	@Override
	public void InitializeGui() {
		
		dim = Toolkit.getDefaultToolkit().getScreenSize();
		GuiData viewData = GuiData.getInstance();
		viewData.setMainWindowWidth(dim.width);
		viewData.setMainWindowHeight(dim.height);
		
		currentView.InitializeView(viewData);
	}

}
